package org.example.mutithread.reentrantrwlock;

public class Test {

    public static void main(String[] args) {
        Product product = new Product();
        Producer p = new Producer(product);
        Consumer c = new Consumer(product);

        new Thread(c).start();
        new Thread(c).start();
        // new Thread(c).start();

        new Thread(p).start();

    }
}
